from TestToolsV2.data.ReadConfig import readConfig


class myConfig:
    def __init__(self):
        self.blackPanel: str = None  # 默认主题
        self.highColor: str = None  # 高亮字体颜色
        self.highSize: str = None  # 高亮字体大小
        self.defualExcelPath: str = None  # 默认EXCEL路径
        self.histryPath: list = None  # 所有历史路径
        self.panelList = ["dark_teal", "light_blue", "light_blue_white", "default"]  # 主题列表

    def settingDatas(self, _read: readConfig):
        self.blackPanel = _read.get_forkey("blackPanel")
        self.highColor = _read.get_forkey("highColor")
        self.highSize = _read.get_forkey("highSize")
        self.defualExcelPath = _read.get_forkey("defualExcelPath")
        self.histryPath = _read.get_forkey("histryPath")
